---成本扣除-货币扣除等
return [[
    local key = KEYS[1]
    local mem = KEYS[2]
    local del = tonumber(ARGV[1])
    local old = tonumber(redis.call('hget', key, mem)) or 0
    if del > 0 and old >= del then
        local new = old - del
        redis.call("hset", key, mem, new)
        return { 1, new }
    elseif del == 0 then
        return { 0, old }
    else
        return { 0, old }
    end
]]
